export default{
    name:'token',
    state:{
        token:'',
        menu:[],
    },
    reducers:{
        saveToken(state:object,action:any){
            return {
                ...state,
                token:action.payload.token
            }
        },
        removeToken(state:object,action:any){
            return {
                ...state,
                token:''
            }
        }
    },
}